*Paper: Fiscal Rules, Corruption and Electoral Accountability - Replication Files

clear all
cap log close 
set more off


**Global files
global folder "/Users/tommasogiommoni/Dropbox/Determinants of corruption/Stability pact and corruption/Replication files JOP"


********************************************************************************
****----						Dataset open 					    	----**** 
********************************************************************************

use "$folder/Data/FigureA11.dta", clear

********************************************************************************
****----							Analysis							----**** 
********************************************************************************

preserve
keep if abs(P)<2000
keep if anno>=2013
drop if DSP_goal>2000000 | AvanzoDisavanzo>20000000
scatter log_AvanzoDisavanzo log_DSP_goal if FURs==0, graphregion(color(white)) msize(tiny) mcolor(black) xtitle("Fiscal rules goal (log)")  ytitle("Realized surplus (log)") title("") legend(off) || lfit log_AvanzoDisavanzo log_DSP_goal
gr export "$folder/Figures/FigureA11.png", replace 
restore
